/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package alphatest;

import plash.display.Stage;

/**
 *
 * @author User
 */
public class AlphaTestStage extends Stage
{
    private RedBox _box1 = new RedBox();
    private GreenBox _box2 = new GreenBox();
    
    public AlphaTestStage()
    {
        _createBoxes();
    }

    private void _createBoxes()
    {
        _box1.setX(100);
        _box1.setY(100);
        
        _box2.setX(50);
        _box2.setY(50);
        
        _box1.addChild(_box2);
        
        _box1.setAlpha(0.4f);
        _box2.setAlpha(0.4f);
        
        addChild(_box1);
    }
}
